This repository was archived by the owner on Oct 17, 2026. It is now read-only.
Repository navigation
feat(settings): find System Settings by topic and keyword - #3
Merged
Merged
Conversation
Searching "batt" found nothing, because the Battery pane only has an internal name, and "dark" found nothing either, because Appearance never says it. System Settings ships search-terms files for its own search; reading them gives every pane its topics and keywords, follows the macOS version, and is localised for free. Apps get a slightly larger tie-break weight so "gc" means Google Chrome, and topics rank well below apps so "set" still means System Settings.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
A ranking audit against the real catalog on this Mac found that Settings search was too shallow:
PowerPreferencesand nothing localised, so the name filter dropped it.Approach
searchTermsFileNamepoints at the plist System Settings' own search uses. Every entry becomes a topic (Battery,Low Power Mode,Turn firewall on or off) with its index words as keywords. A topic named like its pane only lends the pane its keywords.portableOnly/desktopOnlyentries follow whether the Mac has an internal battery (IOKit power sources).ISGraphicIconConfiguration) show it; Battery and Headphones, which don't, keep the System Settings icon.Before / after on this Mac (top result): batt → (none) / Battery · dark mode → (none) / Appearance · low power → (none) / Low Power Mode · gc → Game Center / Google Chrome · set → System Settings / System Settings.
Look at sceptically
Checklist
scripts/task checkpasses locally